local function main(userOb, msgData)
    local level = userOb:get_level() + 1000
    local rpc = {}
    if level > 1005 then
        rpc.levelstart = level-5
    else
        rpc.levelstart = level
    end
    rpc.levelend = level+10
    rpc.method = "read_snap_user"
    local ok, data = THREAD_D:send("database_yield", rpc)

    local result = {}
    result.code = 200
    result.data = data
    userOb:send_packet("MSGS2CGoodFriend", result)
end

--注册方法
COMMAND_D:register_command("MSGC2SGoodFriend",GameCmdType.NONE, main)
